package oop多态作业;

public class Seafood extends Pizza {
    private String  burdening;

    public String getBurdening() {
        return burdening;
    }

    public void setBurdening(String burdening) {
        this.burdening = burdening;
    }

    public Seafood(String name, double price, int size, String burdening) {
        super(name, price, size);
        this.burdening = burdening;
    }

    public Seafood() {

    }
    public void show(){
        System.out.println("名称："+super.getName());
        System.out.println("价格："+super.getPrice()+"元");
        System.out.println("大小："+super.getSize()+"寸");
        System.out.println("配料："+this.burdening);
    }

}
